<div id="content">
        <h2>本次绩效考评<a href="<?=Util_JxUrls::team_url('QueryTeamHistory')?>" class="blue">查看绩效历史和计划 »</a></h2>
        <table class="table01" width="520" border="1" cellpadding="0" cellspacing="0" rules="rows">
            <thead>
                <tr>
                    <td width="85">姓名</td>
                    <td width="166">状态</td>
                    <td width="53">最终得分</td>
                    <td width="170">操作</td>
                </tr>
            </thead>
            <tbody>
                <?php if($sub_list):?>
                <?php foreach($sub_list as $val):?>
                   <tr>
                    <td style="vertical-align:middle"><?=$val['name']?></td>
                    <td>
                        <ul class="user-planlist">
                        <?php /*操作只有打分，确认计划，查看*/?>
                            <?php foreach($last_month as $k=> $date):?>
                            <li><?=intval(substr($date,4,2))?>-<?=intval(substr($date,6,2))?>月考评：
                            <?php if(empty($datalist[$val['user_id']][$date])):?>
                            <?php if($k==0):?>
                            －－
                            <?php else:?>
                            待创建计划
                            <?php endif;?>

                            <?php else:?>
                            <?php $status = $datalist[$val['user_id']][$date]['status']; ?>
                            <span class="orange"><?=$status_list[$status]?></span>
                            <?php endif;?>
                            <?php if($k==0 && !empty($no_kp[$val['user_id']])):?>
                            (免考)
                            <?php endif;?>
                            </li>
                            <?php endforeach;?>
                        </ul>
                    </td>
                    <td><span class="score"><?=$datalist[$val['user_id']][$last_month[0]]['adjustScore']?></span></td>
                    <td>
                        <ul class="plan-link">
                            <?php foreach ($last_month as $k=> $date):?>
                            <?php $status = $datalist[$val['user_id']][$date]['status']; ?>
                            <?php if(empty($datalist[$val['user_id']][$date])):?>
                                <?php if($k==0):?>
                                <li>－－</li>
                                <?php else:?>
                                <li><?php if($status==20):?><a class="blue" href="<?=Util_JxUrls::plan_url('add',array('user_id'=>$val['user_id'],'searchDate'=>$date))?>" target="_blank">确认计划</a><?php else: ?>－－<?php endif;?></li>
                                <?php endif;?>
                            <?php else:?>
                                <?php if($k==0 && !empty($no_kp[$val['user_id']])):?>
                                －－
                                <?php else:?>
                                <li><a href="<?=Util_JxUrls::plan_url('view',array('user_id'=>$val['user_id'],'searchDate'=>$date))?>" class="blue" target="_blank">
                                <?php if($status==40):?>
                                打分
                                <?php else:?>查看
                                <?php endif;?>
                                </a></li>
                                <?php endif;?>
                            <?php endif;?>
                            <?php endforeach;?>
                        </ul>
                    </td>
                </tr>
                <?php endforeach;?>
                <?php endif;?>
            </tbody>
        </table>
        <?php if($is_last_date['step_date']):?>
        <span class="tips_sp">温馨提示：<?=date('Y年m月d日',strtotime($is_last_date['step_date']))?>后，未打分的员工将以2.0分处理</span>
        <?php endif;?>
        <div class="btn-box2">

            <input type="button" value="提交全部下属绩效" class="cancel-button-small " />

        </div>

        <h2>271分布情况</h2>
        <table class="table01" width="470" border="1" cellpadding="0" cellspacing="0" rules="rows" style="text-align:center;">
            <thead>
                <tr>
                    <td width="33%">A</td>
                    <td width="33%">B</td>
                    <td width="33%">C</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><?=empty($abc_list['A']) ? 0 : $abc_list['A']?> (<?php if($abc_list['A']):?><?=floor(($abc_list['A']/$max_users)*10000)/10000*100?><?php else:?>0<?php endif;?>%)</td>
                    <td><?=empty($abc_list['B']) ? 0 : $abc_list['B']?> (<?php if($abc_list['B']):?><?=floor(($abc_list['B']/$max_users)*10000)/10000*100?><?php else:?>0<?php endif;?>%)</td>
                    <td><?=empty($abc_list['C']) ? 0 : $abc_list['C']?> (<?php if($abc_list['C']):?><?=floor(($abc_list['C']/$max_users)*10000)/10000*100?><?php else:?>0<?php endif;?>%)</td>
                </tr>
            </tbody>
        </table>
    </div>

<?php $this->script_block_begin(); ?>
    <script type="text/javascript">
    $(function(){
          $('#team_1').addClass("tab-on");
    });
function submitPerformance(){
          $('#submitPerformance_ids').submit();
}
function updatePlan(planMonth){
      $('#editKaoPinMonth_ids').val(planMonth);
      $('#toEditPlanIds').submit();
}
    </script>

<?php $this->script_block_end(); ?>